<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			//求两数加起来是75;
			const num = 75;
			let arr = [1,5,87,4,33,74,43,32,70];
			for(let i=0;i<arr.length;i++){
				for(let j=i+1;j<arr.length;j++){
					if(arr[i] + arr[j] == num){
						console.log(arr[i]+","+arr[j]);
					}
				}
			}
			
		</script>
	</body>
</html>
